#include <stdio.h>
int main()
{
    int score;
    printf("请输入学生成绩:");
    scanf("%d", &score);
    if (score < 0 || score > 100)
    {
        printf("输入错误\n");
        return 0;
    }
    int i = score / 10;
    switch (i)
    {
    case 10:
        printf("优秀\n");
        break;
    case 9:
        printf("优秀\n");
        break;
    case 8:
        printf("良好\n");
        break;
    case 7:
        printf("中等\n");
        break;
    case 6:
        printf("及格\n");
        break;
    default:
        printf("不及格\n");
    }
}